<%@page import="business.manage.user.dto.User"%>
<%@page import="business.manage.system.dto.Menu"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
	+ request.getServerName() + ":" + request.getServerPort()
	+ path + "/";
	
	
	List<Menu> menuList = (List<Menu>)request.getAttribute("menuList");
	
	 Object object = (Object)request.getSession().getAttribute("user");
	 User user = null;
	 if(object!=null){
		 user = (User)object;
	 }
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<TITLE>管理页面</TITLE>
<STYLE type=text/css>
BODY {
	BACKGROUND: #799ae1;
	MARGIN: 0px;
	FONT: 9pt 宋体
}

TABLE {
	BORDER-RIGHT: 0px;
	BORDER-TOP: 0px;
	BORDER-LEFT: 0px;
	BORDER-BOTTOM: 0px
}

TD {
	FONT: 12px 宋体
}

IMG {
	BORDER-RIGHT: 0px;
	BORDER-TOP: 0px;
	VERTICAL-ALIGN: bottom;
	BORDER-LEFT: 0px;
	BORDER-BOTTOM: 0px
}

A {
	FONT: 12px 宋体;
	COLOR: #000000;
	TEXT-DECORATION: none
}

A:hover {
	COLOR: #428eff;
	TEXT-DECORATION: underline
}

.sec_menu {
	BORDER-RIGHT: white 1px solid;
	BACKGROUND: #d6dff7;
	OVERFLOW: hidden;
	BORDER-LEFT: white 1px solid;
	BORDER-BOTTOM: white 1px solid
}

.menu_title {
	
}

.menu_title SPAN {
	FONT-WEIGHT: bold;
	LEFT: 7px;
	COLOR: #215dc6;
	POSITION: relative;
	TOP: 2px
}

.menu_title2 {
	
}

.menu_title2 SPAN {
	FONT-WEIGHT: bold;
	LEFT: 8px;
	COLOR: #428eff;
	POSITION: relative;
	TOP: 2px
}
</STYLE>

<SCRIPT language=javascript1.2>
	
	
	
function showsubmenu(sid)
{
whichEl = eval("submenu" + sid);
if (whichEl.style.display == "none")
{
eval("submenu" + sid + ".style.display=\"\";");
}
else
{
eval("submenu" + sid + ".style.display=\"none\";");
}
}



</SCRIPT>

<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR>
</HEAD>
<BODY leftMargin=0 topMargin=0 marginwidth="0" marginheight="0">
	<TABLE cellSpacing=0 cellPadding=0 width="100%" align=left border=0>
		<TBODY>
			<TR>
				<TD vAlign=top bgColor=#799ae1>
				<!-- 
					<TABLE cellSpacing=0 cellPadding=0 width=158 align=center>
						<TBODY>
							<TR>
								<TD vAlign=bottom height=42><IMG height=38
									src="<%=request.getContextPath()%>/left.files/title.gif"
									width=158></TD>
							</TR>
						</TBODY>
					</TABLE>
				 -->
					<TABLE cellSpacing=0 cellPadding=0 width=158 align=center>
						<TBODY>
							<TR>
								<TD class=menu_title onMouseOver="this.className='menu_title2';"
									onmouseout="this.className='menu_title';" background=""
									height=25><SPAN><%=user!=null?user.getPersonName():"" %> | <A href="<%=path %>/admin/logout"
										target=_parent><B>退出</B></A></SPAN></TD>
							</TR>
							
						</TBODY>
					</TABLE>
					<TABLE cellSpacing=0 cellPadding=0 width=158 align=center>
						<TBODY>
						<!-- 
							<TR>
								<TD class=menu_title id=menuTitle1
									onmouseover="this.className='menu_title2';"
									onclick=showsubmenu(999)
									onmouseout="this.className='menu_title';"
									background=<%=request.getContextPath()%>/left.files/admin_left_1.gif height=25><span><B>个人信息管理</B></span></TD>
							</TR>
							<TR>
								<TD id=submenu999>
									<DIV class=sec_menu style="WIDTH: 158px ">
										<TABLE cellSpacing=0 cellPadding=0 width=135 align=center>
											<TBODY>
												<TR>
													<TD height=20><A href="UserInfo.asp" target=mainFrame>你的个人资料</A></TD>
												</TR>
												<TR>
													<TD height=20><A href="UserInfoAlter.asp"
														target=mainFrame>修改个人资料</A></TD>
												</TR>
												<TR>
													<TD height=20><a href="UserInfoPassWord.asp"
														target="mainFrame">修改用户密码</a></TD>
												</TR>
											</TBODY>
										</TABLE>
									</DIV>
									<DIV style="WIDTH: 158px">
										<TABLE cellSpacing=0 cellPadding=0 width=135 align=center>
											<TBODY>
												<TR>
													<TD height=20></TD>
												</TR>
											</TBODY>
										</TABLE>
									</DIV>
								</TD>
							</TR>
						</TBODY>
					</TABLE> 
					 -->
					<%
 	if (menuList.size() > 0) {
 		for (int i = 0; i < menuList.size(); i++) {
 			Menu menu = menuList.get(i);
 			if (menu.getParent().equals("0")) {
 				String menuId = menu.getId();
 %>
					<TABLE cellSpacing=0 cellPadding=0 width=158 align=center>
						<TBODY>
							<TR>
								<TD class=menu_title id=menuTitle1
									onmouseover="this.className='menu_title2';"
									onclick='showsubmenu(<%=i %>)'
									onmouseout="this.className='menu_title';"
									background=<%=request.getContextPath()%>/left.files/admin_left_2.gif height=25><SPAN><%=menu.getName()%></SPAN></TD>
							</TR>
							<TR>
								<TD id=submenu<%=i %>><DIV class=sec_menu style="WIDTH: 158px">
										<TABLE cellSpacing=0 cellPadding=0 width=135 align=center>
											<TBODY>
												<%
													for (int j = 0; j < menuList.size(); j++) {
																	Menu childMenu = menuList.get(j);
																	if (menu.getId().equals(childMenu.getParent())) {
												%>
												<TR>
													<TD height=20><a href="<%=path+childMenu.getUrl() %>" target=mainFrame><%=childMenu.getName() %></a></TD>
												</TR>

												<%
													}
																}
												%>
											</TBODY>
										</TABLE>
									</DIV>
									<DIV style="WIDTH: 158px">
										<TABLE cellSpacing=0 cellPadding=0 width=135 align=center>
											<TBODY>
												<TR>
													<TD height=20></TD>
												</TR>
											</TBODY>
										</TABLE>
									</DIV></TD>
							</TR>
						</TBODY>
					</TABLE> <%
 	}
 		}
 	}
 %>

				

<!-- 
					<TABLE cellSpacing=0 cellPadding=0 width=158 align=center>
						<TBODY>
							<TR>
								<TD class=menu_title id=menuTitle1
									onmouseover="this.className='menu_title2';"
									onmouseout="this.className='menu_title';"
									background=<%=request.getContextPath()%>
									/left.files/admin_left_9.gif height=25><SPAN></SPAN></TD>
							</TR>
							<TR>
								<TD>
									<DIV class=sec_menu style="WIDTH: 158px">
										<TABLE cellSpacing=0 cellPadding=0 width=135 align=center>
											<TBODY>
												<TR>
													<TD height=20 bgcolor="#D6DFF7" style="LINE-HEIGHT: 150%">
													</TD>
												</TR>
											</TBODY>
										</TABLE>
									</DIV>
								</TD>
							</TR>
						</TBODY>
					</TABLE>
					 -->
			</TR>
		</TBODY>
	</TABLE>


</BODY>
</HTML>
